package com.ternnetwork.core.service;

import java.util.List;

import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.core.entity.User;
import com.ternnetwork.core.entity.UserRole;




public interface UserRoleService {
	public void doAdd(UserRole t);
	public List<UserRole> findByUserId(long userId);
	public void doDeleteBatch(List<UserRole> urList);
	public int idoDeleteByUserId(long userId);
	public void doAddBatch(List<UserRole> urList);
	public void doDelete(UserRole t);
	public void doAddUserRole(User user,String roleCode);
	public void doDeleteUserRole(User user,String roleCode);
	public void doAddUserRoleByRoleIds(User user,String roleIds);
	public void doDeleteUserRoleByRoleIds(User user,String roleIds);
	
	//public User deleteUserRoleByRoleIds(String roleIds, User t);
	//public User setUserRoleByRoleIds(String roleIds, User t);
	public BaseResponse idoUpdate(long userId,String roleIds,String deleteRoleIds);
}
